import React, {Component} from 'react';
import {NavLink} from 'react-router-dom';

class Nav extends Component {
  render () {
    return (
      <nav>
        <NavLink to="/">Home</NavLink>
        <NavLink to="/detail/1">detail 1</NavLink>
        <NavLink to="/detail/2">detail 2</NavLink>
        <NavLink to="/detail/3">detail 3</NavLink>
      </nav>
    )
  }
}

export default Nav